
	* Figure A3
	* Event Study Estimates of the Effect of School Finance Reforms on Outcomes

	***** High School
	clear all
    set obs 6

 gen year=_n
 gen j_plus_hs=.
 gen j_plus_hs_se=.
 
	replace j_plus_hs=0.0233 if year==1
	replace j_plus_hs_se=0.0241 if year==1

	replace j_plus_hs=-0.002 if year==2
	replace j_plus_hs_se=0.0285 if year==2
	
	replace j_plus_hs=0 if year==3
	replace j_plus_hs_se=0 if year==3
	
	replace j_plus_hs=0.0327 if year==4
	replace j_plus_hs_se=0.0342 if year==4
	
	replace j_plus_hs=0.0287 if year==5
	replace j_plus_hs_se=0.0222 if year==5
	
	replace j_plus_hs=0.0726 if year==6
	replace j_plus_hs_se=0.0252 if year==6
	
	gen ub=j_plus_hs_se*(1.65) + j_plus_hs
	gen lb=j_plus_hs_se*(-1.65) + j_plus_hs
	
	twoway  (line j_plus_hs year,lcolor(black) lpattern(solid)) || ///
	(line ub year, lcolor(gray) lpattern(dash)) ///
	|| (line lb year ,  lcolor(gray) lpattern(dash)), ///
	legend(order(1 2) pos(6) rows(1)  ///
	label(1 "Point Estimate") ///
	label(2 "90% Confidence Interval")) xtitle(Periods) ///
	xlabel(1(1)6) xtick(1(1)6) ///
	yline(0, lpattern(line) lcolor() ) ///
	xlabel(1 "15-12 Pre" 2 "11-6 Pre" 3 "5-1 Pre" 4 ///
	"0-5 Post" 5 "6-9 Post" 6 "10+ Post", ///
	angle(10) ) ytitle("Point Estimate",  size(large)) ///
	xtitle("Years Relative to Event ", ///
	size(large)) xline(3, lpattern(dash_dot)) title("A: High School") 
	graph export "hs_event.jpg", replace
	
	***** Postsecondary
	clear all
    set obs 6

 gen year=_n
 gen j_plus_ps=.
 gen j_plus_ps_se=.
 

	replace j_plus_ps=-0.0375 if year==1
	replace j_plus_ps_se=(0.0279) if year==1

	replace j_plus_ps=0.0007 if year==2
	replace j_plus_ps_se=(0.0416) if year==2
	
	replace j_plus_ps=0 if year==3
	replace j_plus_ps_se=0 if year==3
	
	replace j_plus_ps=0.013 if year==4
	replace j_plus_ps_se=(0.0513) if year==4
	
	replace j_plus_ps=0.0011 if year==5
	replace j_plus_ps_se=(0.0302) if year==5
	
	replace j_plus_ps=0.0404 if year==6
	replace j_plus_ps_se=(0.0315) if year==6
	
	gen ub=j_plus_ps_se*(1.65) + j_plus_ps
	gen lb=j_plus_ps_se*(-1.65) + j_plus_ps
	
	twoway  (line j_plus_ps year,lcolor(black) lpattern(solid)) || ///
	(line ub year, lcolor(gray) lpattern(dash)) ///
	|| (line lb year ,  lcolor(gray) lpattern(dash)), ///
	legend(order(1 2) pos(6) rows(1)  ///
	label(1 "Point Estimate") ///
	label(2 "90% Confidence Interval")) xtitle(Periods) ///
	xlabel(1(1)6) xtick(1(1)6) ///
	yline(0, lpattern(line) lcolor() ) ///
	xlabel(1 "15-12 Pre" 2 "11-6 Pre" 3 "5-1 Pre" 4 ///
	"0-5 Post" 5 "6-9 Post" 6 "10+ Post", ///
	angle(10) ) ytitle("Point Estimate",  size(large)) ///
	xtitle("Years Relative to Event ", ///
	size(large)) xline(3, lpattern(dash_dot)) title("B: Postsecondary") 
	graph export "ps_event.jpg", replace
	
	***** Ever Volunteered
	clear all
    set obs 6

 gen year=_n
 gen j_plus_ev=.
 gen j_plus_ev_se=.
 

	replace j_plus_ev=-0.0349 if year==1
	replace j_plus_ev_se=(0.0485) if year==1

	replace j_plus_ev=-0.0347 if year==2
	replace j_plus_ev_se=(0.0586) if year==2
	
	replace j_plus_ev=0 if year==3
	replace j_plus_ev_se=0 if year==3
	
	replace j_plus_ev=-0.0546 if year==4
	replace j_plus_ev_se=(0.0592) if year==4
	
	replace j_plus_ev=-0.0017 if year==5
	replace j_plus_ev_se=(0.0395) if year==5
	
	replace j_plus_ev=0.0062 if year==6
	replace j_plus_ev_se=(0.0496) if year==6
	
	gen ub=j_plus_ev_se*(1.65) + j_plus_ev
	gen lb=j_plus_ev_se*(-1.65) + j_plus_ev
	
	twoway  (line j_plus_ev year,lcolor(black) lpattern(solid)) || ///
	(line ub year, lcolor(gray) lpattern(dash)) ///
	|| (line lb year ,  lcolor(gray) lpattern(dash)), ///
	legend(order(1 2) pos(6) rows(1)  ///
	label(1 "Point Estimate") ///
	label(2 "90% Confidence Interval")) xtitle(Periods) ///
	xlabel(1(1)6) xtick(1(1)6) ///
	yline(0, lpattern(line) lcolor() ) ///
	xlabel(1 "15-12 Pre" 2 "11-6 Pre" 3 "5-1 Pre" 4 ///
	"0-5 Post" 5 "6-9 Post" 6 "10+ Post", ///
	angle(10) ) ytitle("Point Estimate",  size(large)) ///
	xtitle("Years Relative to Event ", ///
	size(large)) xline(3, lpattern(dash_dot)) title("C: Ever Volunteered") 
	graph export "ev_event.jpg", replace
	
	
	
	***** Register to Vote
		clear all
    set obs 6

 gen year=_n
 gen j_plus_rv=.
 gen j_plus_rv_se=.
 

	replace j_plus_rv=-0.027 if year==1
	replace j_plus_rv_se=(0.0514) if year==1

	replace j_plus_rv=-0.0354 if year==2
	replace j_plus_rv_se=(0.0287) if year==2
	
	replace j_plus_rv=0 if year==3
	replace j_plus_rv_se=0 if year==3
	
	replace j_plus_rv=0.0563 if year==4
	replace j_plus_rv_se=(0.0631) if year==4
	
	replace j_plus_rv=0.1352 if year==5
	replace j_plus_rv_se=(0.0721) if year==5
	
	replace j_plus_rv=0.0545 if year==6
	replace j_plus_rv_se=(0.0517) if year==6
	
	gen ub=j_plus_rv_se*(1.65) + j_plus_rv
	gen lb=j_plus_rv_se*(-1.65) + j_plus_rv
	
	twoway  (line j_plus_rv year,lcolor(black) lpattern(solid)) || ///
	(line ub year, lcolor(gray) lpattern(dash)) ///
	|| (line lb year ,  lcolor(gray) lpattern(dash)), ///
	legend(order(1 2) pos(6) rows(1)  ///
	label(1 "Point Estimate") ///
	label(2 "90% Confidence Interval")) xtitle(Periods) ///
	xlabel(1(1)6) xtick(1(1)6) ///
	yline(0, lpattern(line) lcolor() ) ///
	xlabel(1 "15-12 Pre" 2 "11-6 Pre" 3 "5-1 Pre" ///
	4 "0-5 Post" 5 "6-9 Post" 6 "10+ Post", ///
	angle(10) ) ytitle("Point Estimate",  size(large)) ///
	xtitle("Years Relative to Event ", ///
	size(large)) xline(3, lpattern(dash_dot)) title("D: Register to Vote") 
	graph export "rv_event.jpg", replace
